In IDL, a newline
character terminates a statement unless preceded by a
‘$’. If you
would like to start a continuation line, use
M-<RET>, which calls the command
idlwave-split-line. It inserts the continuation
character ‘$’,
terminates the line and indents the new line. The command
M-<RET> can also be invoked inside a string to
split it at that point, in which case the
‘+’
concatenation operator is used.
When filling comment
paragraphs, IDLWAVE overloads the normal filling functions and
uses a function which creates the hanging paragraphs customary in
IDL routine headers. When auto-fill-mode is turned
on (toggle with C-c C-a), comments will be
auto-filled. If the first line of a paragraph contains a match
for idlwave-hang-indent-regexp (a dash-space by
default), subsequent lines are positioned to line up after it, as
in the following example.
;=================================
; x - an array containing
; lots of interesting numbers.
;
; y - another variable where
; a hanging paragraph is used
; to describe it.
;=================================
You can also refill a comment at any time paragraph with M-q. Comment delimiting lines as in the above example, consisting of one or more ‘;’ followed by one or more of the characters ‘+=-_*’, are kept in place, as is.
t)Non-
nilmeans auto fill will only operate on comment lines.
t)Non-
nilmeans auto fill will split strings with the IDL ‘+’ operator.
t)Non-
nilmeansidlwave-split-linewill split strings with ‘+’.
t)Non-
nilmeans comment paragraphs are indented under the hanging indent given byidlwave-hang-indent-regexpmatch in the first line of the paragraph.